#include "donothinggadget.h"

DoNothingGadget::DoNothingGadget(QString classId, DoNothingWidget *widget, QWidget *parent):
    IPluginGadget(classId, parent),
    m_widget(widget)
{

}

DoNothingGadget::~DoNothingGadget()
{
    if(m_widget)
        delete m_widget;
}

void DoNothingGadget::saveState(QSettings *qs)
{
    qs->setValue("test", m_widget->getLabel());
}

void DoNothingGadget::restoreState(QSettings *qs)
{
    m_widget->setLabel(qs->value("test").toString());
}

